#include <iostream>
#include "uthreads.h"
#include "user_thread.h"
#include "common_defs.h"
using namespace std;
#define SECOND 1000000
void xizqo (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (29);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void emjmw (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (48);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ueuuo (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void inbmw (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (5);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void pdglm (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (39);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void xhdsx (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void xwyfy (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (42);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void eqwbu (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (22);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ulbus (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (33);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void zrmka (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void xcsxr (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ihkpy (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ktaoa (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (46);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void pnoeg (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void qzbwc (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void dzvdn (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void cdpio (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void erkux (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void yfkis (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (20);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ijett (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (26);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void quldk (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ywlzt (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void dgrrf (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (0);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void norwo (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void nexmh (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void tmvnp (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void gcwfo (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (8);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ucofr (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void njrkl (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (38);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void lksjm (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (48);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void aksay (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void vcuxl (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ejvjz (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void vehsa (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (18);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void verfa (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void pjvrx (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void wquce (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void mxodw (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (1);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void vsrgm (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (42);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void zzcow (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (18);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ufwkn (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void mvnie (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (47);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void ngeis (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (42);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void hxdvi (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void iwuwb (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void skbdg (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	thread_suspend (33);
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void kuafa (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void qqoel (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
void uetuh (void)
{
	DBG_PRINT("Starting function %d\n",0);
	int id;
	id = thread_gettid();
	DBG_PRINT("End of function %d\n",0);
	thread_terminate(id);
}
int main()
{
	int res;
	res = thread_lib_init();
	if ( res )
	{
		cerr << "thread_lib_init failed" << endl;
		return res;
	}
	res = thread_spawn( xizqo , 17);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function xizqo failed" << endl;
	}
	res = thread_spawn( emjmw , 30);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function emjmw failed" << endl;
	}
	res = thread_spawn( ueuuo , 25);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ueuuo failed" << endl;
	}
	res = thread_spawn( inbmw , 30);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function inbmw failed" << endl;
	}
	res = thread_spawn( pdglm , 22);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function pdglm failed" << endl;
	}
	res = thread_spawn( xhdsx , 1);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function xhdsx failed" << endl;
	}
	res = thread_spawn( xwyfy , 3);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function xwyfy failed" << endl;
	}
	res = thread_spawn( eqwbu , 13);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function eqwbu failed" << endl;
	}
	res = thread_spawn( ulbus , 27);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ulbus failed" << endl;
	}
	res = thread_spawn( zrmka , 19);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function zrmka failed" << endl;
	}
	res = thread_spawn( xcsxr , 22);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function xcsxr failed" << endl;
	}
	res = thread_spawn( ihkpy , 15);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ihkpy failed" << endl;
	}
	res = thread_spawn( ktaoa , 24);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ktaoa failed" << endl;
	}
	res = thread_spawn( pnoeg , 0);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function pnoeg failed" << endl;
	}
	res = thread_spawn( qzbwc , 0);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function qzbwc failed" << endl;
	}
	res = thread_spawn( dzvdn , 13);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function dzvdn failed" << endl;
	}
	res = thread_spawn( cdpio , 5);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function cdpio failed" << endl;
	}
	res = thread_spawn( erkux , 16);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function erkux failed" << endl;
	}
	res = thread_spawn( yfkis , 13);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function yfkis failed" << endl;
	}
	res = thread_spawn( ijett , 27);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ijett failed" << endl;
	}
	res = thread_spawn( quldk , 27);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function quldk failed" << endl;
	}
	res = thread_spawn( ywlzt , 11);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ywlzt failed" << endl;
	}
	res = thread_spawn( dgrrf , 15);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function dgrrf failed" << endl;
	}
	res = thread_spawn( norwo , 12);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function norwo failed" << endl;
	}
	res = thread_spawn( nexmh , 26);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function nexmh failed" << endl;
	}
	res = thread_spawn( tmvnp , 19);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function tmvnp failed" << endl;
	}
	res = thread_spawn( gcwfo , 17);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function gcwfo failed" << endl;
	}
	res = thread_spawn( ucofr , 12);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ucofr failed" << endl;
	}
	res = thread_spawn( njrkl , 26);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function njrkl failed" << endl;
	}
	res = thread_spawn( lksjm , 0);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function lksjm failed" << endl;
	}
	res = thread_spawn( aksay , 28);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function aksay failed" << endl;
	}
	res = thread_spawn( vcuxl , 16);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function vcuxl failed" << endl;
	}
	res = thread_spawn( ejvjz , 10);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ejvjz failed" << endl;
	}
	res = thread_spawn( vehsa , 13);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function vehsa failed" << endl;
	}
	res = thread_spawn( verfa , 31);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function verfa failed" << endl;
	}
	res = thread_spawn( pjvrx , 29);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function pjvrx failed" << endl;
	}
	res = thread_spawn( wquce , 10);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function wquce failed" << endl;
	}
	res = thread_spawn( mxodw , 18);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function mxodw failed" << endl;
	}
	res = thread_spawn( vsrgm , 29);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function vsrgm failed" << endl;
	}
	res = thread_spawn( zzcow , 16);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function zzcow failed" << endl;
	}
	res = thread_spawn( ufwkn , 11);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ufwkn failed" << endl;
	}
	res = thread_spawn( mvnie , 12);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function mvnie failed" << endl;
	}
	res = thread_spawn( ngeis , 12);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function ngeis failed" << endl;
	}
	res = thread_spawn( hxdvi , 19);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function hxdvi failed" << endl;
	}
	res = thread_spawn( iwuwb , 14);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function iwuwb failed" << endl;
	}
	res = thread_spawn( skbdg , 22);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function skbdg failed" << endl;
	}
	res = thread_spawn( kuafa , 13);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function kuafa failed" << endl;
	}
	res = thread_spawn( qqoel , 14);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function qqoel failed" << endl;
	}
	res = thread_spawn( uetuh , 28);
	if ( -1 == res )
	{
		cerr <<  __LINE__ << ": thread_spawn() for function uetuh failed" << endl;
	}

	DBG_PRINT("End of Main.\n");
	thread_terminate(0);

}
